Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "dashboardDevice">

With this node you can add a dashboardDevice to an existing dashboard or a new one created by the node to select numbers in an interval.

Configuration

dashboard string
Dashboard title to which the dashboardDevice will be added
widget string
Title that will have the widget containing the dashboard.

Inputs

The node accepts in input JSON objects shaped as follows:
    msg.payload = {
            "ordering": "dateObserved", 
			"query": "https://www.snap4city.org/superservicemap/api/v1/iot-search/?selection=42.014990;10.217347;43.7768;11.2515&model=metrotrafficsensor&valueFilters=vehicleFlow>0.5;vehicleFlow<300", 
            "actions": ["pin", "action1"],
            "columnsToShow": ["dateObserved", "vehicleFlow"]
    }

Outputs

The node produces in output the payload of the received message as follows.
  msg.payload = {
            ordering: "dateObserved",
			query: "https://www.snap4city.org/superservicemap/api/v1/iot-search/?selection=42.014990;10.217347;43.7768;11.2515&model=metrotrafficsensor&valueFilters=vehicleFlow>0.5;vehicleFlow<300",
            action:"pin",
			"columnsToShow": ["dateObserved", "vehicleFlow"]
  }